{% extends "devhub/base.html" %}

{% block title %}{{ dev_page_title(title) }}{% endblock %}

{% block content %}
<header>
  <h2>{{ title }}</h2>
</header>
<form method="post" id="create-addon" class="item new-addon-file">
  {% csrf_token %}
  <p>
  {% trans %}
    Use the field below to upload your add-on package.
  {% endtrans %}
  {% trans %}
    After upload, a series of automated validation tests will be
    run on your file.
  {% endtrans %}
  </p>
  <section id="upload-file" class="validate-addon">
    <div class="list-addon">
      <label>{{ _('Do you want your add-on to be distributed on this site?') }}</label>
      {{ new_addon_form.channel }}
    </div>
    <input type="hidden" id="id_theme_specific" name="theme_specific" value="false" />
    <input type="file" id="upload-addon"
      data-upload-url="{{ url('devhub.standalone_upload') }}"
      data-upload-url-listed="{{ url('devhub.standalone_upload') }}"
      data-upload-url-unlisted="{{ url('devhub.standalone_upload_unlisted') }}"
      data-max-upload-size="{{ max_upload_size }}">
  </section>
</form>
{% endblock content %}
